// Swap two strings.
// By DreamVB 00:20 14/10/2016

#include <iostream>

using namespace std;
using std::cout;
using std::endl;

int main(int argc, char *argv[]){
	char s0[80];
	char s1[80];
	char temp[80];

	cout << "Enter a string : ";
	cin >> s0;
	cout << "Enter second string : ";
	cin >> s1;
	cout << endl;

	cout << "First string was  : " << s0 << endl;
	cout << "Second string was : " << s1 << endl;
	cout << endl;
	
	//Swap strings
	strcpy(temp, s1);
	strcpy(s1, s0);
	strcpy(s0, temp);
	
	cout << "First string is now  : " << s0 << endl;
	cout << "Second string is now : " << s1 << endl;

	system("pause");
	return 0;
}